//
// Copyright (c) 2024 BPer
//
#ifndef INCLUDE_BPERUTIL_SYS_BPERSTRING_H_
#define INCLUDE_BPERUTIL_SYS_BPERSTRING_H_

#include <bperutil/buffer/BPerBuffer.h>
#include <bperutil/sys/BPerMath.h>
#include <bperutil/BPerType.h>
#include <string>
#include <vector>
using namespace std;

vector<string> bPer_split(string s, char ch);
vector<string> bPer_split_first(string s, char ch);
std::vector<std::string> bPer_splits(const std::string& str, const std::string& delim);
std::string bPer_int2str(int64_t value);
std::string bPer_random_str(int32_t len);
void bPer_replace(std::string& strBig, const std::string& strsrc, const std::string& strdst);
void skip_first_spaces(std::string& str);
std::string bPer_read_string(BPerBuffer* buf,int32_t len);
void bPer_write_string(BPerBuffer* buf,std::string value);
#endif /* INCLUDE_BPERUTIL_SYS_BPERSTRING_H_ */
